import os


def replace(path):
    with open(path, 'r+') as f:
        print(path)
        content = f.read()
        print(content)
        result = content.replace(" ", "").replace("\n", "").replace("\t", "").replace(" ", "").replace("ture", "true")
        print(result)

    with open(path, 'w') as f:
        f.write(result)


for model in os.listdir('models'):
    replace(os.path.join('models', model))

# replace('models/茶室.txt')
